<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" type="text/css" href="template/default/content/css/style.css">
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<script src="template/default/tree/js/admincp.js?SES" type="text/javascript"></script>
<script charset="utf-8" src="eweb/kindeditor.js"></script>
<script type="text/javascript"> 
function show_help()
{
   mytop=(screen.availHeight-430)/2;
   myleft=(screen.availWidth-800)/2;
   window.open("admin.php?ac=view&fileurl=help&helpid=<?=$fileurl?>","","height=470,width=800,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}
</script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>




<table width="90%" border="0" align="center" cellpadding="3" cellspacing="0" class="small" style="margin-top:20px;margin-bottom:10px;">
  <tr>
    <td class="Big"><img src="template/default/content/images/notify_new.gif" align="absmiddle"><span class="big3"> 新建流程</span>&nbsp;&nbsp;&nbsp;&nbsp;
	<span style="font-size:12px;"><a href="#" onClick="show_help()" style="font-size:12px;">使用帮助文档？</a>&nbsp;|&nbsp;
	<a href="http://bbs.515158.com/" target="_blank" style="font-size:12px;">使用遇到问题？</a>&nbsp;|&nbsp;
	<a href="admin.php?ac=index&fileurl=<?=$fileurl?>" style="font-size:12px;">返回列表页</a><img src="template/default/content/images/f_ico.png" align="absmiddle"></span>
    </td>
  </tr>
</table>




<table class="TableBlock" border="0" width="90%" align="center">
<?
if (user_union_id!='') {
	$_CACHE['workclass_type']=$_CACHE['workclass_type_'.user_union_id];
}else{
	$_CACHE['workclass_type']=$_CACHE['workclass_type'.cache_union];
}
foreach ( $_CACHE['workclass_type'] as $row) {
?>
    <tr>
      <td nowrap class="TableContent"> <?=$row["title"]?></td>
      <td class="TableData">
<?
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."workclass_template where workclasstype='".$row["id"]."' and (tempkey='1' or tempkey='3') and (workuse like'%".GET_INC_USER_NAME($_USER->id)."%' or workuse='0') and unionid='".union_id."' ORDER BY id Asc");
$i=0;
	while ($trow = $db->fetch_array($query)) {
$i++;
?>
          <a href="admin.php?ac=add&fileurl=work&workclasstype=<?=$row[id]?>&worktemplate=<?=$trow[id]?>" ><img src="template/default/content/images/notify_new.gif" width="16" height="16" />
            <?=$trow[title]?></a>
<?php
if($i%5=='0'){
//echo '</tr><tr>';
}
}	
?> </td>
    </tr>
<?}?>
  </table>





</body>
</html>
